package com.bjb.vr.common.mapper;

import com.bjb.vr.common.dto.SysUpgradeDevLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bjb.vr.common.vo.DevUpgradeStatisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author admin
* @description 针对表【sys_upgrade_dev_log(一体机升级记录表)】的数据库操作Mapper
* @createDate 2022-08-02 09:44:10
* @Entity com.bjb.vr.common.dto.SysUpgradeDevLog
*/
public interface SysUpgradeDevLogMapper extends BaseMapper<SysUpgradeDevLog> {

    int updateSysUpdateState(@Param("udid") String udid,@Param("updateState")  int updateState,@Param("updateMsg") String updateMsg);

//    void initSysUpGradeDevLog(@Param("groupCode") String groupCode,@Param("tenantId") String tenantId,@Param("sysUpdateId") long sysUpdateId);

    void reUpdSysUpGradeDevLog(@Param("groupCode") String groupCode,@Param("tenantId") String tenantId,@Param("sysUpdateId") long sysUpdateId,@Param("udid") String udid);

    DevUpgradeStatisticsVo queryDevSysUpgradeStatisticsInfo(@Param("tenantId") String tenantId);

    List<SysUpgradeDevLog> queryDevSysUpgradeLogList(@Param("tenantId") String tenantId, @Param("current") Long current, @Param("size") Long size);

    int queryDevSysUpgradeLogTotal(@Param("tenantId") String tenantId);
}




